/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.itschapala.dsw2.invernadero.BL;

import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import mx.itschapala.dsw2.invernadero.Dao.DayDaoLocal;
import mx.itschapala.dsw2.invernadero.modelo.Day;

/**
 *
 * @author Raven
 */
@Stateless
public class DayBL implements DayBLLocal {
    @EJB
    private DayDaoLocal dayDao;

    @Override
    public void register(Day day) {
        dayDao.create(day);
    }

    @Override
    public void modify(Day day) {
        dayDao.edit(day);
    }

    @Override
    public void delete(Day day) {
        dayDao.remove(day);
        
    }

    @Override
    public List<Day> getList() {
        return dayDao.findAll();
    }
    
    
    

}
